libxc: introduce xc_domain_get_guest_width()
authorDario Faggioli <dario.faggioli@citrix.com>
Tue, 10 Sep 2013 17:53:40 +0000 (19:53 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 13 Sep 2013 12:06:28 +0000 (13:06 +0100)
commit0dd5b654107103765994243017a7f0eb15fda341
treeaa5f3648656674a0f48b8b6a3663f5799937b588
parentbd9a0528ebc68ddb723feef6be57f75096d9df52
libxc: introduce xc_domain_get_guest_width()

As a wrapper to XEN_DOMCTL_get_address_size, and use it
wherever the call was being issued directly via do_domctl(),
saving quite some line of code.

Actually, the function returns the guest width in bytes,
rather than directly what XEN_DOMCTL_get_address_size provides
(which is a number of bits), since that is what it is useful
almost everywhere.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxc/xc_core.c
tools/libxc/xc_cpuid_x86.c
tools/libxc/xc_dom_x86.c
tools/libxc/xc_domain.c
tools/libxc/xc_offline_page.c
tools/libxc/xc_pagetab.c
tools/libxc/xc_resume.c
tools/libxc/xenctrl.h
tools/libxc/xg_save_restore.h
tools/xentrace/xenctx.c